package com.arpa.wms.domain.dto;

import com.arpa.wms.domain.entity.BasicEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 * 仓库收款单DTO
 * </p>
 *
 * @author LEO
 * @since 2020-11-17
 */
@Data
@ApiModel(value = "ReceiptDTO对象", description = "仓库收款单")
public class ReceiptDTO extends BasicEntity {



    @ApiModelProperty(value = "状态:0新建、1待审核、2审核通过、3审核不通过")
    private String status;

    @ApiModelProperty(value = "仓库标识")
    private String warehouseCode;

    @ApiModelProperty(value = "入驻商")
    private String shipmentCode;

    @ApiModelProperty(value = "收款单号")
    private String code;

    @ApiModelProperty(value = "付款人")
    private String shipmentName;

    @ApiModelProperty(value = "登录仓库授权该账号的货主集合")
    private List<String> shipmentCodes;

    @ApiModelProperty(value = "授权该账号的仓库集合")
    private List<String> warehouseCodes;

    @ApiModelProperty(value = "收款金额上限")
    private BigDecimal amountCollectedUp;
    @ApiModelProperty(value = "收款金额下限")
    private BigDecimal amountCollectedLow;

    @ApiModelProperty(value = "制单开始日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate gmtBillStart;

    @ApiModelProperty(value = "制单结束日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate gmtBillEnd;



    @ApiModelProperty(value = "所属机构", hidden = true)
    private String groupCode;




    @ApiModelProperty(value = "第几页")
    private Integer pageNum = 1;

    @ApiModelProperty(value = "每页条数")
    private Integer pageSize = 10;

    @ApiModelProperty(value = "排序字段")
    private String sortField;

    @ApiModelProperty(value = "排序方式")
    private String sortType;
}
